<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of VideoDetails
 *
 * @author ZangGuoPing
 */
class VideoDetails extends CActiveRecord{
    //put your code here

    //put your code here
    public function rules() {
        return array(
            array('video_details,video_id', 'required')
        );
    }

    /**
     * Returns the static model of the specified AR class.
     * @return CActiveRecord the static model class
     */
    public static function model($className=__CLASS__) {
        return parent::model($className);
    }

    /**
     * @return string the associated database table name
     */
    public function tableName() {
        return '{{video_details}}';
    }

    public function attributeLabels() {
        return array(
            'video_id' => Yii::t('default', '视频介绍对应的视频编号'),
            'video_details' => Yii::t('default', '视频介绍'),
        );
    }
}
